package net.jforum.util;

import net.jforum.entities.Forum;
import net.jforum.entities.Topic;
import net.jforum.util.preferences.ConfigKeys;
import net.jforum.util.preferences.SystemGlobals;


/**
 * @ author  张洋 jackson.zhang@ericsson.com
 * @ version 创建时间 ：Dec 15, 2010  2:10:36 PM
 * @ description : 
 */
public class SEOUtil {
    
	public static String suffix=SystemGlobals.getValue(ConfigKeys.FORUM_NAME);
	
	public static String forumShowSEO(Forum forum){
     return forum.getName()+" - "+suffix;
	}
	public static String forumShowSEO(String content){
	 return content+" - "+suffix;	
	}
	public static String postShowSEO(Forum forum,Topic topic){
	 return topic.getTitle()+" - "+forum.getName()+" - "+suffix;
	}
	public static String postShowSEO(String forumName,String topicTitle){
	 return topicTitle+" - "+forumName+" - "+suffix;
	}
	
	public static void main(String[] args) {
	 

	}

}
